package com.dataex.app;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainerFactory;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Hello world!
 *
 */
@Configuration
@EnableAutoConfiguration
@ComponentScan
@EnableScheduling
public class App extends SpringBootServletInitializer implements EmbeddedServletContainerCustomizer
{
	
	private final static Logger logger = LoggerFactory.getLogger(dataService.class);
	
	public App(){
		logger.info("app start");
	}
	
	
	@Resource
	dataService u8Service;
	
	public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

	@Override
	public void customize(ConfigurableEmbeddedServletContainerFactory factory) {
		//factory.setPort(8090); 
		
	}
}
